package net.sx.minemodule.mvp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseItem;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.RecommendShopItem;

/**
 * @author 11470
 */
public class RecommendShopBean extends BaseModel implements Parcelable {

    private String recommendPath;
    private String recommendShopName;
    private String recommendShopMoney;
    private String recommendShopMerchant;
    private String recommendShopPeople;

    @Override
    public BaseItem createItem(MultiTypeAdapter adapter) {
        return new RecommendShopItem(this);
    }

    public String getRecommendPath() {
        return recommendPath;
    }

    public void setRecommendPath(String recommendPath) {
        this.recommendPath = recommendPath;
    }

    public String getRecommendShopName() {
        return recommendShopName;
    }

    public void setRecommendShopName(String recommendShopName) {
        this.recommendShopName = recommendShopName;
    }

    public String getRecommendShopMoney() {
        return recommendShopMoney;
    }

    public void setRecommendShopMoney(String recommendShopMoney) {
        this.recommendShopMoney = recommendShopMoney;
    }

    public String getRecommendShopMerchant() {
        return recommendShopMerchant;
    }

    public void setRecommendShopMerchant(String recommendShopMerchant) {
        this.recommendShopMerchant = recommendShopMerchant;
    }

    public String getRecommendShopPeople() {
        return recommendShopPeople;
    }

    public void setRecommendShopPeople(String recommendShopPeople) {
        this.recommendShopPeople = recommendShopPeople;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.recommendPath);
        dest.writeString(this.recommendShopName);
        dest.writeString(this.recommendShopMoney);
        dest.writeString(this.recommendShopMerchant);
        dest.writeString(this.recommendShopPeople);
    }

    public RecommendShopBean() {
    }

    protected RecommendShopBean(Parcel in) {
        this.recommendPath = in.readString();
        this.recommendShopName = in.readString();
        this.recommendShopMoney = in.readString();
        this.recommendShopMerchant = in.readString();
        this.recommendShopPeople = in.readString();
    }

    public static final Creator<RecommendShopBean> CREATOR = new Creator<RecommendShopBean>() {
        @Override
        public RecommendShopBean createFromParcel(Parcel source) {
            return new RecommendShopBean(source);
        }

        @Override
        public RecommendShopBean[] newArray(int size) {
            return new RecommendShopBean[size];
        }
    };
}
